package com.resolution.dietaryassessment.view.main;

import android.os.Bundle;
import android.view.View;

import com.resolution.dietaryassessment.BaseActivity;
import com.resolution.dietaryassessment.R;
import com.resolution.dietaryassessment.listener.MyListener;

/**
 *  @author By Resolusion
 *  @Title: MainActivity
 *  @Date: 2020/1/8
 *  @Time: 10:46
 *  @email res01ution@foxmail.com
 */
public class MainActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
    }

    public void initView() {
        View mDietaryPagoda = findViewById(R.id.dietary_pagoda);
        View mMyDietary = findViewById(R.id.my_dietary);
        View mTCMConstitution = findViewById(R.id.tcm_constitution);
        View mChronicDisease = findViewById(R.id.chronic_disease);

        mDietaryPagoda.setOnClickListener(new MyListener(this));
        mMyDietary.setOnClickListener(new MyListener(this));
        mTCMConstitution.setOnClickListener(new MyListener(this));
        mChronicDisease.setOnClickListener(new MyListener(this));
    }
}
